package com.grocery.bean;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

public class Order {
    private int id;
    private String code;
    private int userId;
    private BigDecimal money;
    private LocalDateTime addtime;
    private LocalDateTime paymenttime;
    private LocalDateTime deliverytime;
    private LocalDateTime gettime;
    private LocalDateTime endtime;
    private int state;
    private LocalDateTime updatetime;

    List<Orderdetail> details;

    Orderaddress address;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public LocalDateTime getAddtime() {
        return addtime;
    }

    public void setAddtime(LocalDateTime addtime) {
        this.addtime = addtime;
    }

    public LocalDateTime getPaymenttime() {
        return paymenttime;
    }

    public void setPaymenttime(LocalDateTime paymenttime) {
        this.paymenttime = paymenttime;
    }

    public LocalDateTime getDeliverytime() {
        return deliverytime;
    }

    public void setDeliverytime(LocalDateTime deliverytime) {
        this.deliverytime = deliverytime;
    }

    public LocalDateTime getGettime() {
        return gettime;
    }

    public void setGettime(LocalDateTime gettime) {
        this.gettime = gettime;
    }

    public LocalDateTime getEndtime() {
        return endtime;
    }

    public void setEndtime(LocalDateTime endtime) {
        this.endtime = endtime;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public LocalDateTime getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(LocalDateTime updatetime) {
        this.updatetime = updatetime;
    }

    public List<Orderdetail> getDetails() {
        return details;
    }

    public void setDetails(List<Orderdetail> details) {
        this.details = details;
    }

    public Orderaddress getAddress() {
        return address;
    }

    public void setAddress(Orderaddress address) {
        this.address = address;
    }
}
